package com.chen.root.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.chen.root.base.BaseDO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

/**
 * <p>
 * 
 * </p>
 *
 * @author ChenJinLong
 * @since 2023-05-21
 */
@Data
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
@TableName("auth_user")
@ApiModel(value = "SysUser对象", description = "")
public class AuthUser extends BaseDO {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("用户ID")
    @TableId(value = "user_id")
    private Long userId;

    @ApiModelProperty("用户名")
    @TableField("username")
    private String username;

    @ApiModelProperty("昵称")
    @TableField("nickname")
    private String nickname;

    @ApiModelProperty("密码")
    @TableField("password")
    private String password;

    @ApiModelProperty("电话号码")
    @TableField("phone")
    private String phone;

    @ApiModelProperty("头像url")
    @TableField("avatar_url")
    private String avatarUrl;

    /**
     * 详情请看 {RoleTypeEnums}
     */
    @ApiModelProperty("账户类型")
    @TableField("account_type")
    private String accountType;

    @ApiModelProperty("账户是否启用：0-启用，1-关闭")
    @TableField("enabled")
    private String enabled;

}
